<extend name="Base/lrbase" />
<block name="style">
	<link href="__CSS__/wxCoupon.css" rel="stylesheet">
	<link href="__CSS__/dataTables.bootstrap.css" rel="stylesheet">
	<link href="__CSS__/custom.css" rel="stylesheet">
	<link href="__CSS__/footable.core.css" rel="stylesheet">
	<style>
		.ibox-title h5 {
  			margin: 10px 0 0px;
		}
		select.input-sm {
  			height: 35px;
  			line-height: 35px;
		}
		.float-e-margins .btn-info{
			margin-bottom:0px;
		}
		.fa-paste{
			margin-right:7px;
			padding: 0px;
		}
		.dz-preview{
			display:none;
		}
		.ibox-title ul{ list-style: outside none none !important; margin: 0; padding: 0;}
		.ibox-title li { float: left;width: 30%; }
		#commonpage {float: right;margin-bottom: 10px;}
		#table-list-body .btn-st{background-color: #337ab7;border-color: #2e6da4;cursor:auto;}
		#select_Cardtype .i-checks label{cursor: pointer;}
		#ewmPopDiv .modal-body{text-align: center;}
	.modal-footer {text-align: center;}
	.modal-footer .btn {padding: 7px 30px;}
	.js_modify_quantity .fa{margin-left: 10px;}
	#ewmPopDiv .downewm{ font-size: 14px;padding: 15px;text-align: center;}
	.modal-body {padding: 20px 30px 15px;}
	#select_Cardtype p{ margin-bottom: 8px;}
	</style>
</block>

<block name="body">
	<div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>积分兑换</h2>
            <ol class="breadcrumb">
                <li><a>Jifenduihuan</a></li>
				<li><a>lists</a></li>
                <li class="active"><strong>兑换商品列表</strong></li>
            </ol>
        </div>
    	<div class="col-lg-2"></div>
    </div>

    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
            	<div class="ibox float-e-margins">
            	    <div class="ibox-title clearfix">
						<ul class="nav"> 
							<li><div class="btn btn-primary" id="pop_add_card">
								<a href="{:U('Jifenduihuan/add')}" style="color:white;"><i class="fa fa-plus"></i> 添加兑换信息 </a>
								</div></li> 
						</ul> 
            	    </div>
					<div class="ibox-content"> 
   						<nav class="ui-nav clearfix"> 
      					<div class="cashier-realtime"> 
       						<div class="realtime-title-block clearfix"> 
        						<h1 class="realtime-title">兑换商品列表</h1> 
       						</div> 
      					</div> 
      					<div class="js-real-time-region realtime-list-box loading">
       						<div class="widget-list">
        						<div class="js-list-filter-region clearfix ui-box" style="position: relative;">
         							<div class="widget-list-filter"></div>
        						</div> 
	        					<div class="ui-box"> 
		         					<table class="ui-table ui-table-list" data-page-size="20" style="padding: 0px;"> 
		          						<thead class="js-list-header-region tableFloatingHeaderOriginal">
		           							<tr class="widget-list-header">
				    							<th>编号</th>
		            							<th>商品名称</th> 
												<th data-hide="phone">开始时间</th>
									            <th data-hide="phone">结束时间</th> 
									         	<th data-hide="phone">需要积分</th>
												<th data-hide="phone">操作</th>
		           							</tr>
		          						</thead>
		          						<tbody class="js-list-body-region" id="table-list-body">
											<notempty name="list">
												<volist name="list" id="data">
													<tr class="widget-list-item">
														<td>{$data.id}</td>
														<td>{$data.goodsname}</td>
														<td>{$data.starttime}</td> 
														<td>{$data.endtime}</td> 
														<td>{$data.price}</td>
														<td class="footable-visible footable-last-column">
															<a class="btn btn-sm btn-info"  href="?s=Jifenduihuan/edit/id/{$data.id}" style="vertical-align:top;"> 详 情 </a>
															<a href="?s=Jifenduihuan/del/id/{$data.id}" class="btn btn-sm btn-danger">
																<strong> 删 除 </strong>
															</a>
														</td>
													</tr>
												</volist>
												<else/>
												<tr class="widget-list-item"><td colspan="8">促销信息为空</td></tr>
											</notempty>
										</tbody> 
									</table> 
									<div class="js-list-empty-region"></div>
								</div>
								<div class="js-list-footer-region ui-box">
									<div class="widget-list-footer">{$page}</div>
								</div> 
							</div>
			      		</div> 
			     	</div>
			    </div>
			</div> 
		</div>
	</div>
</block>

<block name="script">
<script src="__JS__/footable.all2.min.js"></script>
<script src="__JS__/icheck.min.js"></script>
</block>